import types from './mutation-types'
function findIndex(list, song){
    return  list.findIndex((item) => {
        return item.id === song.id;
    });
}
export const setUserInfo = ({commit},userInfo)=>{
	commit(types.SET_USERINFO,userInfo)
}

export const setPageCenterTitle = ({ commit }, title) => {
    commit('setPageCenterTitle', title)
}

export const setMenuCurrent = ({ commit }, value) => {
    commit('setMenuCurrent', value)
}